package com.mc.api.service.impl;

import com.mc.api.domain.CltTask;
import com.mc.api.domain.SysPlant;
import com.mc.api.mapper.CltTaskMapper;
import com.mc.api.service.ICltTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CltTaskServiceImpl implements ICltTaskService {

    @Autowired
    private CltTaskMapper cltTaskMapper;

    @Override
    public CltTask selectCltTask(String userId) {
        return cltTaskMapper.selectCltTask(userId);
    }

    @Override
    public CltTask selectCltTaskByID(String id) {
        return cltTaskMapper.selectCltTaskByID(id);
    }

    @Override
    public List<SysPlant> selectPlantByDate(String date) {
        return cltTaskMapper.selectPlantByDate(date);
    }

    @Override
    public CltTask selectTaskByUserName(String userName) {
        return cltTaskMapper.selectTaskByUserName(userName);
    }
}
